package app.common.utils.wdt.sdk.api.wms;

import app.common.utils.wdt.sdk.Pager;
import app.common.utils.wdt.sdk.WdtErpException;
import app.common.utils.wdt.sdk.api.wms.dto.*;
import app.common.utils.wdt.sdk.impl.Api;

import java.util.List;
import java.util.Map;

public interface StockAPI {
    @Api(value = "wms.StockSpec.search", paged = true)
    StockSearchResponse search(StockSearchRequest request, Pager pager);

    @Api("wms.StockPd.stockSyncByPd")
    Map<String, Object> createPdOrder(PdOrderCreateRequest.OrderDto order, List<PdOrderCreateRequest.DetailDto> detailDtoList);
    
    @Api("wms.stocktransfer.Edit.createOrder")
    TransferOrderCreateResponse createTransferOrder(TransferOrderCreateRequest.orderInfoDto orderInfo, List<TransferOrderCreateRequest.detailDto> detailList,boolean isCheck);

    @Api(value = "wms.stocktransfer.Manage.queryWithDetail", paged = true)
    TransferOrderSearchResponse searchStockTransfer(TransferOrderSearchRequest request, Pager pager) throws WdtErpException ;
}
